import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:sainbainu/common/values/colors.dart';

class CommentInput extends StatelessWidget {
  final VoidCallback? onTap;
  const CommentInput({Key? key, this.onTap}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: onTap,
      child: Container(
        height: 34,
        padding: const EdgeInsets.only(left: 8, right: 6),
        decoration: const BoxDecoration(
          color: AppColors.page,
          borderRadius: BorderRadius.all(Radius.circular(5)),
        ),
        child: Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: [
            Text(
              'SainBainu ${'我想说...'.tr}',
              style: const TextStyle(
                color: Color(0xff888888),
                fontSize: 14,
              ),
            ),
            Image.asset(
              'assets/images/voice.png',
              width: 20,
              height: 20,
            )
          ],
        ),
      ),
    );
  }
}
